package cn.liontalk.AbstractFactory;

public class MercedesCarFactory implements  AbstractCarFactory{
    @Override
    public void installWheel() {
        WheelFactory wheelFactory = new MercedesWheelFactory();
        System.out.println("奔驰安装：==="+wheelFactory.createWheel());
    }

    @Override
    public void installSteeringWheel() {
        SteeringWheelFactory steeringWheelFactory = new BMWSteeringWheelFactory();
        System.out.println("奔驰安装：=====" + steeringWheelFactory.createSteeringWheel());
    }

    @Override
    public void installEngine() {
        EngineFactory engineFactory = new BMWEngineFactory();
        System.out.println("奔驰安装：=====" + engineFactory.createEngine());
    }
}
